﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace binary
{
    public class MyForm : Form
    {
    
        public delegate void delegat();
        public Thread run;


        public void Finish()
        {
            if (run != null)
            {
                if (run.ThreadState == ThreadState.Running)
                {
                    Thread.Sleep(100);
                }
                Close();
            }
        }

        
    }
}
